package com.itcm.skymail.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itcm.common.utils.PageUtils;
import com.itcm.skymail.member.entity.MemberEntity;
import com.itcm.skymail.member.exception.PhoneExistException;
import com.itcm.skymail.member.exception.UsernameExistException;
import com.itcm.skymail.member.vo.LoginUser;
import com.itcm.skymail.member.vo.RegistMember;
import com.itcm.skymail.member.vo.WeiboAccessVo;

import java.util.Map;

/**
 * 会员
 *
 * @author cm_fighting
 * @email cmtianxie@163.com
 * @date 2020-08-27 16:37:37
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(RegistMember user);

    void checkUsernameExist(String username) throws UsernameExistException;

    void checkPhoneExist(String phone) throws PhoneExistException;

    MemberEntity login(LoginUser user);

    MemberEntity weiboLogin(WeiboAccessVo vo);
}

